home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
By Popular Request 2.0
/
By Popular Request 2.0 (Arsenal Computer).ISO
/
amiga_2
/
cnetjam2.lha
/
CNetJam2
/
cnet
/
pfiles
/
fido
/
NetLogViewer
< prev
next >
Wrap
Text File
|
1995-01-27
|
2KB
|
43 lines
/**************************************************************************\
$VER: NET_Log Viewer, v2.0 (27-Jan-95) by Dotoran!
\**************************************************************************/
options results;signal on SYNTAX;signal on ERROR;signal on IOERR
tr=transmit;se=sendstring;gc=getchar;gu=getuser;gs=getscratch
/* Gives the SysOp a way to view logs pertaining to Networks, JamMail, etc.
You should add this line to the bottom of Menu # 1; SysOp Only Menu of
your "cnet:bbsmenu" file:
NL, Net Log | {#0pfiles:fido/NetLogViewer}
^
Control-Q
*/
START:
logs = 6 /* Total Number of Logs to Define */
path = "SysData:Log/" /* Path where logs are stored */
log.1 = "NetMail" /* These are the FILENAMES the logs use */
log.2 = "JamMail"
log.3 = "TrapList"
log.4 = "Toss"
log.5 = "Poll"
log.6 = "FFRS"
do i=1 to logs;f.i=exists(path||log.i);end i
tr 'n1r1 CNet Amiga FIDO-NET Log Viewer r0n1 * = Log Existsn1'
do i=1 to logs;tr right(i,2)'. 'substr(' *',f.i+1,1)' 'log.i;end i
se 'n1Q. Quit Log Viewern2Choice: i0 2}';gu 70;a=result
if a<1|a>logs then a='q';if a='q' then do;tr 'Quit';exit;end
if f.a=1 then tr substr(log.a,13)'n1q1*0'path||log.a'}'
else do;tr substr(log.a,13)'n2<Log Empty>';signal START;end
se 'Delete Log? [No]: ';gc;b=result
if b~='Y' then do;tr 'No.';signal START;end
tr 'Yes!n2Deleting...$odelete 'path||log.a'}h6ed!'
signal START
SYNTAX:;ERROR:;IOERR:;e1=' c9Errorcf: ca'rc' cf(ca'errortext(rc)'cf)';e2=' c9Linecf: ce'left(sigl,4)'c9Filecf:'
gu 1311992;a=result;gu 1311960;b=result;c='cb"ce'a||b'cb"';e2=e2' 'c;tr e1;tr e2;logentry e1;logentry e2;e=sourceline(sigl)
do while e~='';e3='c9Sourcecf: cd'left(e,37);tr e3;logentry e3;e=substr(e,38);end;bufferflush;exit
/** Last Edited: 27-Jan-95 ************************************************\
\****************************************** FRONTIERS BBS (716)/823-9892 **/